package kubayaxi.video.client.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import kubayaxi.video.client.response.banner.BannerListVO;
import kubayaxi.video.client.service.IBannerService;
import kubayaxi.video.service.base.common.response.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: kubayaxi_video_back
 * @description:
 * @author: Mr.lin
 * @create: 2023-01-01 22:02
 **/
@RestController
@RequestMapping("/client/banner")
@Api(tags = "客户端【轮播图】")
public class BannerController {
	@Autowired
	private IBannerService bannerService;

	@PostMapping("/getBanner")
	@ApiOperation("查询轮播图集合")
	public ResponseResult<List<BannerListVO>> bannerList(){
		List<BannerListVO> ans = bannerService.bannerList();
		return ResponseResult.success(ans);
	}
}
